--#include "data\functions\Fuben\KongFuMaster.lua" once   --练功师

local npcId = 173
NpcDialog[npcId] = {}
NpcDialog[174] = {}
NpcDialog[175] = {}
NpcDialog[176] = {}
NpcDialog[177] = {}
local t1 = NpcDialog[npcId]
local t2 = NpcDialog[174]
local t3 = NpcDialog[175]
local t4 = NpcDialog[176]
local t5 = NpcDialog[177]

t1.main = function(sysarg)
	local masterIdx = 1
	local desc = Lang.ScriptTips.KongFuMasterDesc1
	OpenKongFuMasterDialog( sysarg, masterIdx, desc )
end

t2.main = function(sysarg)
	local masterIdx = 2
	local desc = Lang.ScriptTips.KongFuMasterDesc2
	OpenKongFuMasterDialog( sysarg, masterIdx, desc )
end

t3.main = function(sysarg)
	local masterIdx = 3
	local desc = Lang.ScriptTips.KongFuMasterDesc3
	OpenKongFuMasterDialog( sysarg, masterIdx, desc )
end

t4.main = function(sysarg)
	local masterIdx = 4
	local desc = Lang.ScriptTips.KongFuMasterDesc4
	OpenKongFuMasterDialog( sysarg, masterIdx, desc )
end

t5.main = function(sysarg)
	local masterIdx = 5
	local desc = Lang.ScriptTips.KongFuMasterDesc5
	OpenKongFuMasterDialog( sysarg, masterIdx, desc )
end

function OpenKongFuMasterDialog( sysarg, masterIdx, desc )
	local masterCfg = KongFuMasterConfig[masterIdx]
	if not masterCfg then
		return
	end

	local functions = {}
	functions[1] = { Lang.ScriptTips.ButtonEnter, "EnterKongFuMaster" }
	CommonNpcDialog( sysarg, masterCfg, enDailyOpTimes_KongFuMaster, masterIdx, desc, functions, NpcDialogType.GeneralNpcDlg )
end


t1.EnterKongFuMaster = function(sysarg)
	local masterIdx = 1
	EnterKongFuMaster( sysarg, masterIdx )
end

t2.EnterKongFuMaster = function(sysarg, bossIdx)
	local masterIdx = 2
	EnterKongFuMaster( sysarg, masterIdx )
end

t3.EnterKongFuMaster = function(sysarg, bossIdx)
	local masterIdx = 3
	EnterKongFuMaster( sysarg, masterIdx )
end

t4.EnterKongFuMaster = function(sysarg, bossIdx)
	local masterIdx = 4
	EnterKongFuMaster( sysarg, masterIdx )
end

t5.EnterKongFuMaster = function(sysarg, bossIdx)
	local masterIdx = 5
	EnterKongFuMaster( sysarg, masterIdx )
end

